package com.ruoyi.ruoyiserver.config;

import com.ruoyi.common.config.RuoYiConfig;

import java.io.File;

// 基础变量
public class IConstants {

    public static final String STORAGE_DIR = RuoYiConfig.getProfile() + File.separator;


    /**
     * 可预览的文件类型
     */
    public static final String PIC_DIR = "picture" + File.separator;


    static {
        File file = new File(STORAGE_DIR, PIC_DIR);
        if (!file.exists()) {
            file.mkdirs();
        }
    }

}
